Optimal. Leaf size=75 \[ \frac{2 \sqrt{a^2+2 a b \sqrt{x}+b^2 x}}{b^2}-\frac{2 a \left (a+b \sqrt{x}\right ) \log \left (a+b \sqrt{x}\right )}{b^2 \sqrt{a^2+2 a b \sqrt{x}+b^2 x}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.039791, antiderivative size = 75, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.182, Rules used = {1341, 640, 608, 31} \[ \frac{2 \sqrt{a^2+2 a b \sqrt{x}+b^2 x}}{b^2}-\frac{2 a \left (a+b \sqrt{x}\right ) \log \left (a+b \sqrt{x}\right )}{b^2 \sqrt{a^2+2 a b \sqrt{x}+b^2 x}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1341
Rule 640
Rule 608
Rule 31
Rubi steps
\begin{align*} \int \frac{1}{\sqrt{a^2+2 a b \sqrt{x}+b^2 x}} \, dx &=2 \operatorname{Subst}\left (\int \frac{x}{\sqrt{a^2+2 a b x+b^2 x^2}} \, dx,x,\sqrt{x}\right )\\ &=\frac{2 \sqrt{a^2+2 a b \sqrt{x}+b^2 x}}{b^2}-\frac{(2 a) \operatorname{Subst}\left (\int \frac{1}{\sqrt{a^2+2 a b x+b^2 x^2}} \, dx,x,\sqrt{x}\right )}{b}\\ &=\frac{2 \sqrt{a^2+2 a b \sqrt{x}+b^2 x}}{b^2}-\frac{\left (2 a \left (a+b \sqrt{x}\right )\right ) \operatorname{Subst}\left (\int \frac{1}{a b+b^2 x} \, dx,x,\sqrt{x}\right )}{\sqrt{a^2+2 a b \sqrt{x}+b^2 x}}\\ &=\frac{2 \sqrt{a^2+2 a b \sqrt{x}+b^2 x}}{b^2}-\frac{2 a \left (a+b \sqrt{x}\right ) \log \left (a+b \sqrt{x}\right )}{b^2 \sqrt{a^2+2 a b \sqrt{x}+b^2 x}}\\ \end{align*}
Mathematica [A] time = 0.0299355, size = 50, normalized size = 0.67 \[ \frac{2 \left (a+b \sqrt{x}\right ) \left (b \sqrt{x}-a \log \left (a+b \sqrt{x}\right )\right )}{b^2 \sqrt{\left (a+b \sqrt{x}\right )^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.01, size = 50, normalized size = 0.7 \begin{align*} 2\,{\frac{\sqrt{{a}^{2}+{b}^{2}x+2\,ab\sqrt{x}} \left ( b\sqrt{x}-a\ln \left ( a+b\sqrt{x} \right ) \right ) }{ \left ( a+b\sqrt{x} \right ){b}^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.03503, size = 31, normalized size = 0.41 \begin{align*} -\frac{2 \, a \log \left (b \sqrt{x} + a\right )}{b^{2}} + \frac{2 \, \sqrt{x}}{b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\sqrt{a^{2} + 2 a b \sqrt{x} + b^{2} x}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.16299, size = 74, normalized size = 0.99 \begin{align*} -\frac{2 \,{\left | a \right |} \log \left ({\left | \sqrt{b^{2} x} \mathrm{sgn}\left (a\right ) \mathrm{sgn}\left (b\right ) +{\left | a \right |} \right |}\right )}{b^{2}} + \frac{2 \,{\left | a \right |} \log \left ({\left | a \right |}\right )}{b^{2}} + \frac{2 \, \sqrt{b^{2} x}}{b^{2} \mathrm{sgn}\left (a\right ) \mathrm{sgn}\left (b\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]